<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>电影信息后台管理</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="assets/css/admin.css">
    <link rel="stylesheet" href="assets/css/app.css">
</head>

<body data-type="index">

<header class="am-topbar am-topbar-inverse admin-header">
    <div class="am-topbar-brand">
        <a href="/" class="tpl-logo">
            <img src="assets/img/logo.png" alt="">
        </a>
    </div>
    <div class="am-icon-list tpl-header-nav-hover-ico am-fl am-margin-right" style="cursor: pointer">

    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
            data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span
            class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list tpl-header-list">
            <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                    <span class="am-icon-bell-o"></span> 提醒 <span
                        class="am-badge tpl-badge-success am-round"
                        th:text="0"></span></span>
                </a>
                <ul class="am-dropdown-content tpl-dropdown-content">
                    <li class="tpl-dropdown-content-external">
                        <h3>你有 <span class="tpl-color-success" th:text="adminHomeVO.hotMovieDTOList"></span> 条提醒
                        </h3><a onclick="loadMainBody('/admin/blog/image-list')">全部</a></li>
                    <li class="tpl-dropdown-list-bdbc" th:text="'each movieDTO : adminHomeVO.hotMovieDTOList'">
                        <a th:onclick="'loadMainBody(\'/blog/edit/form/0\')'"
                           class="tpl-dropdown-list-fl"><span
                                class="am-icon-btn am-icon-plus tpl-dropdown-ico-btn-size tpl-badge-success"></span>
                            <text th:text="'blogDTO.blog.title'"/>
                        </a>
                        <!-- <span class="tpl-dropdown-list-fr"
                               th:text="${#dates.format(blogDTO.blog.createDate,'hh:mm:ss')}"></span>-->
                    </li>
                </ul>
            </li>
            <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                <a class="am-dropdown-toggle tpl-header-list-link" onclick="clearUnreadComments();">
                    <span class="am-icon-comment-o"></span> 新评论 <span
                        class="am-badge tpl-badge-danger am-round unread-comment"
                        th:text="0"></span></span>
                </a>
                <ul class="am-dropdown-content tpl-dropdown-content">
                    <li class="tpl-dropdown-content-external">
                        <h3>你有 <span class="tpl-color-danger" th:text="${adminHomeVO.unreadCommentCount}">N</span> 条评论
                        </h3><a onclick="loadMainBody('/admin/comment/list')">全部</a></li>
                    <li th:each="comment : ${adminHomeVO.unreadCommentList}">
                        <a onclick="loadMainBody('/admin/comment/list')" class="tpl-dropdown-content-message">
                                <span class="tpl-dropdown-content-photo">
                      <img src="/assets/images/comment_head.jpg" alt=""> </span>
                            <span class="tpl-dropdown-content-subject">
                      <span class="tpl-dropdown-content-from" th:text="${comment.content}"> 消息提醒帐号名称 </span>
                                <span class="tpl-dropdown-content-time" th:text="${comment.createDate}"> </span>
                                </span>
                            <span class="tpl-dropdown-content-font" th:text="${adminHome}"> </span>
                        </a>

                    </li>

                </ul>
            </li>
            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen" class="tpl-header-list-link"><span
                    class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>

            <li class="am-dropdown" data-am-dropdown data-am-dropdown-toggle>
                <a class="am-dropdown-toggle tpl-header-list-link" href="javascript:;">
                    <span class="tpl-header-list-user-nick"
                          th:text="${adminHomeVO.admin==null?'rose': adminHomeVO.admin.nickname}">账户名称</span><span
                        class="tpl-header-list-user-ico"> <img
                        src="assets/img/user01.png"></span>
                </a>
                <ul class="am-dropdown-content">
                    <li>
                        <a th:onclick="'loadMainBody(\'edit/form/'+${adminHomeVO.admin==null?-1:adminHomeVO.admin.id}+'\')'"><span
                                class="am-icon-bell-o"></span>&nbsp;修改资料</a></li>
                    <li><a onclick="logoutBackground()"><span class="am-icon-power-off"></span>&nbsp;退出</a></li>
                </ul>
            </li>
            <li><a onclick="logoutBackground()" class="tpl-header-list-link"><span
                    class="am-icon-sign-out tpl-header-list-ico-out-size"></span></a></li>
        </ul>
    </div>
</header>
<div class="tpl-page-container tpl-page-header-fixed">
    <div id="left" class="tpl-left-nav tpl-left-nav-hover">
        <div class="tpl-left-nav-title">
            管理列表
        </div>
        <div class="tpl-left-nav-list">
            <ul class="tpl-left-nav-menu">
                <li class="tpl-left-nav-item">
                    <a href="/admin/index" class="nav-link active">
                        <i class="am-icon-home"></i>
                        <span>首页</span>
                    </a>
                </li>
                <li class="tpl-left-nav-item">
                    <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                        <i class="am-icon-table"></i>
                        <span>数据查询</span>
                        <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right"></i>
                    </a>
                    <ul class="tpl-left-nav-sub-menu">
                        <li>
                            <a onclick="loadMainBody('/admin/movie/list/image?page=0&size=12')">
                                <i class="am-icon-angle-right"></i>
                                <span>电影图文</span>
                            </a>
                            <a onclick="loadMainBody('/admin/movie/list')">
                                <i class="am-icon-angle-right"></i>
                                <span>电影列表</span>
                            </a>
                            <a onclick="loadMainBody('list')">
                                <i class="am-icon-angle-right"></i>
                                <span>管理员列表</span>
                            </a>
                            <a onclick="loadMainBody('/admin/movie/type/list');">
                                <i class="am-icon-angle-right"></i>
                                <span>类别列表</span>
                            </a>
                            <a onclick="loadMainBody('/admin/movie/language/list');">
                                <i class="am-icon-angle-right"></i>
                                <span>语言列表</span>
                            </a>
                            <a onclick="loadMainBody('/admin/person/list');">
                                <i class="am-icon-angle-right"></i>
                                <span>人物列表</span>
                            </a>
                            <a onclick="loadMainBody('/admin/movie/news/list');">
                                <i class="am-icon-angle-right"></i>
                                <span>新闻列表</span>
                            </a>
                            <!--<a onclick="loadMainBody('/admin/comment/list');clearUnreadComments();">
                                <i class="am-icon-angle-right"></i>
                                <span>评论列表</span>
                                <i class="tpl-left-nav-content tpl-badge-primary unread-comment"
                                >
                                    0
                                </i>
                            </a>-->
                        </li>
                    </ul>
                </li>

                <li class="tpl-left-nav-item">
                    <a href="javascript:;" class="nav-link tpl-left-nav-link-list">
                        <i class="am-icon-wpforms"></i>
                        <span>信息管理</span>
                        <i class="am-icon-angle-right tpl-left-nav-more-ico am-fr am-margin-right tpl-left-nav-more-ico-rotate"></i>
                    </a>
                    <ul class="tpl-left-nav-sub-menu" style="display: block;">
                        <li>
                            <a onclick="loadMainBody('movie/form/save/0')">
                                <i class="am-icon-angle-right"></i>
                                <span>增加电影</span>
                                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                            </a>
                            <a onclick="loadMainBody('person-save')">
                                <i class="am-icon-angle-right"></i>
                                <span>增加人物</span>
                                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                            </a>
                            <a onclick="loadMainBody('/admin/edit/form/0')">
                                <i class="am-icon-angle-right"></i>
                                <span>增加管理员</span>
                                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                            </a>
                            <a onclick="loadMainBody('movie-type-save')">
                                <i class="am-icon-angle-right"></i>
                                <span>增加分类</span>
                                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                            </a>
                            <a onclick="loadMainBody('movie-language-save')">
                                <i class="am-icon-angle-right"></i>
                                <span>增加语言</span>
                                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                            </a>
                            <a onclick="loadMainBody('movie-news-save')">
                                <i class="am-icon-angle-right"></i>
                                <span>发布新闻</span>
                                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                            </a>
                            <a onclick="loadMainBody('movie-develop')">
                                <i class="am-icon-angle-right"></i>
                                <span>开发者测试</span>
                                <i class="am-icon-star tpl-left-nav-content-ico am-fr am-margin-right"></i>
                            </a>
                        </li>
                    </ul>
                </li>

                <li class="tpl-left-nav-item">
                    <a onclick="logoutBackground()" class="nav-link tpl-left-nav-link-list">
                        <i class="am-icon-key"></i>
                        <span>退出后台</span>

                    </a>
                </li>
            </ul>
        </div>
    </div>

    <div id="main" class="tpl-content-wrapper">


        <div class="row">
            <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
                <div class="dashboard-stat blue">
                    <div class="visual">
                        <i class="am-icon-comments-o"></i>
                    </div>
                    <div class="details">
                        <div class="number" th:text="${adminHomeVO.onlineCount}"></div>
                        <div class="desc">当前在线人数</div>
                    </div>
                    <a class="more" href="#"> 查看更多
                        <i class="m-icon-swapright m-icon-white"></i>
                    </a>
                </div>
            </div>
            <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
                <div class="dashboard-stat red">
                    <div class="visual">
                        <i class="am-icon-bar-chart-o"></i>
                    </div>
                    <div class="details">
                        <div class="number" th:text="${adminHomeVO.todayVisitorCount}"></div>
                        <div class="desc">今日访问人数</div>
                    </div>
                    <a class="more" href="#"> 查看更多
                        <i class="m-icon-swapright m-icon-white"></i>
                    </a>
                </div>
            </div>
            <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
                <div class="dashboard-stat green">
                    <div class="visual">
                        <i class="am-icon-apple"></i>
                    </div>
                    <div class="details">
                        <div class="number" th:text="${adminHomeVO.visitorCount}"></div>
                        <div class="desc"> 历史访问人数</div>
                    </div>
                    <a class="more" href="#"> 查看更多
                        <i class="m-icon-swapright m-icon-white"></i>
                    </a>
                </div>
            </div>
            <div class="am-u-lg-3 am-u-md-6 am-u-sm-12">
                <div class="dashboard-stat purple" onclick="loadMainBody('/admin/blog/list')" style="cursor: pointer">
                    <div class="visual">
                        <i class="am-icon-android"></i>
                    </div>
                    <div class="details">
                        <div class="number" th:text="${adminHomeVO.movieCount}"></div>
                        <div class="desc"> 电影数</div>
                    </div>
                    <a class="more" href="#"> 查看更多
                        <i class="m-icon-swapright m-icon-white"></i>
                    </a>
                </div>
            </div>


        </div>


        <div class="row">
            <div class="am-u-md-6 am-u-sm-12 row-mb">

                <div class="tpl-portlet">
                    <div class="tpl-portlet-title">
                        <div class="tpl-caption font-green ">
                            <span>热门电影</span>
                            <span class="caption-helper"></span>
                        </div>
                        <div class="tpl-portlet-input">
                            <div class="portlet-input input-small input-inline">
                                <div class="input-icon right">
                                    <i class="am-icon-search"></i>
                                    <input type="text" class="form-control form-control-solid" placeholder="搜索...">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="wrapper" class="wrapper">
                        <div id="scroller" class="scroller">
                            <ul class="tpl-task-list">
                                <li th:each="hotMovieDTO:${adminHomeVO.hotMovieList}">
                                    <div class="task-checkbox">
                                        <input type="hidden" class="liChild"></div>
                                    <div class="task-title">
                                        <span class="task-title-sp" style="cursor: pointer"
                                              th:onclick="'loadMainBody(\'movie/form/save/'+${hotMovieDTO.movie.id}+'\')'"
                                              th:text="${hotMovieDTO.movie.name}"
                                        >电影标题</span>
                                        <span class="label label-sm label-warning"
                                              th:text="'评分'+${hotMovieDTO.movie.rate}"
                                        ></span>
                                        <span class="label label-sm label-danger"
                                              th:text="'热度'+${hotMovieDTO.hot}"
                                        >热度</span>
                                        <span class="label label-sm label-default"
                                              th:text="${hotMovieDTO.movie.type.typeName}"
                                        >发布日期</span>
                                        <span class="label label-sm label-success"
                                              th:text="${hotMovieDTO.movie.createDate}"
                                        >发布日期</span>
                                        <span class="task-bell">
                                            <i class="am-icon-bell-o"></i>
                                        </span>
                                    </div>
                                    <div class="task-config">
                                        <div class="am-dropdown tpl-task-list-dropdown" data-am-dropdown>
                                            <a href="###" class="am-dropdown-toggle tpl-task-list-hover "
                                               data-am-dropdown-toggle>
                                                <i class="am-icon-cog"></i> <span class="am-icon-caret-down"></span>
                                            </a>
                                            <ul class="am-dropdown-content tpl-task-list-dropdown-ul">
                                                <li>
                                                    <a href="javascript:;">
                                                        <i class="am-icon-check"></i> 保存 </a>
                                                </li>
                                                <li>
                                                    <a>
                                                        <i class="am-icon-pencil"></i> 编辑 </a>
                                                </li>
                                            </ul>


                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="am-u-md-6 am-u-sm-12 row-mb">
                <div class="tpl-portlet">
                    <div class="tpl-portlet-title">
                        <div class="tpl-caption font-green ">
                            <span>最近发布</span>
                        </div>

                    </div>

                    <div class="am-tabs tpl-index-tabs" data-am-tabs>
                        <div class="am-tabs-bd">
                            <div class="am-tab-panel am-fade am-in am-active" id="tab1">
                                <div id="wrapperA" class="wrapper">
                                    <div id="scrollerA" class="scroller">
                                        <ul class="tpl-task-list tpl-task-remind">
                                            <li th:each="recentMovie:${adminHomeVO.recentMovieList}">
                                                <div class="cosB">
                                                    12分钟前
                                                </div>
                                                <div class="cosA">
                                                    <span class="task-title-sp"
                                                          style="cursor: pointer"
                                                          th:onclick="'loadMainBody(\'movie/form/save/'+${recentMovie.id}+'\')'"
                                                          th:text="${recentMovie.name}">电影标题</span>
                                                    <span class="label label-sm label-info"
                                                          th:text="${recentMovie.type.typeName}"></span>
                                                    <span class="label label-sm label-success"
                                                          th:text="${recentMovie.movieLanguage.language}"></span>
                                                    <span class="label label-sm label-info"
                                                          th:text="${recentMovie.rate}"></span>
                                                    <span class="label label-sm label-danger"
                                                          th:text="${recentMovie.initialReleaseDate}">日期</span>

                                                </div>

                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>

                </div>
            </div>
        </div>
        <div class="row">
            <div class="am-u-md-6 am-u-sm-12 row-mb">
                <div class="tpl-portlet">
                    <div class="tpl-portlet-title">
                        <div class="tpl-caption font-green ">
                            <i class="am-icon-cloud-download"></i>
                            <span>最近访问用户</span>
                        </div>
                    </div>
                    <div class="tpl-scrollable">

                        <table class="am-table tpl-table">
                            <thead>
                            <tr class="tpl-table-uppercase">
                                <th>序号</th>
                                <th>用户IP</th>
                                <th>用户终端</th>
                                <th>访问时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="visitor : ${adminHomeVO.recentVisitorList}">
                                <td th:text="${visitorStat.index+1}"></td>
                                <td th:text="${visitor.ip}">ip</td>
                                <td th:text="${visitor.terminal}">User terminal</td>
                                <td class="font-green bold" th:text="${visitor.visitDate}">26%</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
            <div class="am-u-md-6 am-u-sm-12 row-mb">
                <div class="tpl-portlet">
                    <div class="tpl-portlet-title">
                        <div class="tpl-caption font-red ">
                            <i class="am-icon-bar-chart"></i>
                            <span>最近登录管理员</span>
                        </div>
                    </div>
                    <div class="tpl-scrollable">

                        <table class="am-table tpl-table">
                            <thead>
                            <tr class="tpl-table-uppercase">
                                <th>昵称</th>
                                <th>帐号</th>
                                <th>性别</th>
                                <th>上次登录时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr th:each="admin : ${adminHomeVO.recentLoginAdminList}">
                                <td>
                                    <img src="assets/img/user01.png" alt="" class="user-pic">
                                    <a class="user-name" th:text="${admin.nickname}">禁言小张</a>
                                </td>
                                <td th:text="${admin.account}">￥3213</td>
                                <td th:text="${admin.gender}">65</td>
                                <td class="font-green bold" th:text="${admin.lastLoginDate}">26%</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/iscroll.js"></script>
<script src="assets/js/app.js"></script>
<script src="/assets/js/md5.js"></script>
<script src="/movie/js/do.js"></script>
<script src="assets/js/ui.js"></script>
<script src="assets/select/bootstrap-3.3.4.js"></script>
<script src="assets/select/distpicker.data.js"></script>
<script src="assets/select/distpicker.js"></script>
<!--<script src="assets/select/main.js"></script>-->
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>

</body>
</html>